package com.foreknow.elmboot.service;

import com.foreknow.elmboot.po.DeliveryAddress;
import com.foreknow.elmboot.po.OrderIdCart;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import javax.xml.crypto.Data;
import java.util.List;

public interface OrderService {

    /**
     * 读取用户地址
     * @param userId 用户ID
     * @return 用户地址集合
     */
    public List<DeliveryAddress> readAddress(Integer userId) throws Exception;

    /**
     * 保存用户合计订单
     * @param orderIdCart
     * @return
     * @throws Exception
     */
    public int saveOrders(OrderIdCart orderIdCart) throws Exception;
}
